/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

import org.infoset.xml.Name;

/**
 *
 * @author R. Alexander Milowski
 */
public class VariableReference extends VoidExpression {
   
   boolean global;
   Name name;
   
   /** Creates a new instance of ListOperatorExpression */
   public VariableReference(boolean global,Name name) {
      super(Expression.Operator.VariableRef);
      this.global = global;
      this.name = name;
   }
   
   public boolean isGlobal() {
      return global;
   }
   
   public Name getName() {
      return name;
   }
   
   public Operator getOperator() {
      return operator;
   }
   
   public String toString() {
      return "("+operator+" "+global+" "+name+" )";
   }
}
